package org.jeecg.modules.demo.mall.yxstorecoupon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.mall.entity.YxStoreCoupon;
import org.jeecg.modules.demo.mall.entity.YxStoreCouponUser;

import java.util.List;

/**
 * @Description: 优惠券表
 * @Author: jeecg-boot
 * @Date: 2023-11-03
 * @Version: V1.0
 */
public interface IYxStoreCouponService extends IService<YxStoreCoupon> {

    YxStoreCoupon saveTime(YxStoreCoupon yxStoreCoupon);


    List<YxStoreCouponUser> queryUserCoupon(String merId, Integer uid);

    List<YxStoreCouponUser> updateCoupon(YxStoreCouponUser req, List<YxStoreCouponUser> yxStoreCouponUserList);

    //获取不等于优惠券的商品
    List<YxStoreCouponUser> queryIsNotCoupon(YxStoreCouponUser yxStoreCouponUser);

    //获取不等于优惠券的商品
    List<YxStoreCouponUser> queryNot(YxStoreCouponUser req);

    //修改日期
    void updateExpireDate(YxStoreCouponUser req);
}
